/**
 * 作者：陈文斌 on 2019/1/7.
 * 邮箱：chen_wennbin@163.com
 * 版本：v1.0
 */

import 'package:flutter/material.dart';
import 'package:crm/constant/constant.dart';

class TileNormal extends StatelessWidget {
  final Widget title;
  final Widget subtitle;
  final double height;
  final Color color;

  TileNormal({
    Key key,
    @required this.title,
    this.subtitle,
    this.height = 36,
    this.color,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      color: color,
      width: AppScreen.setWidth(375),
      height: height,
      padding: EdgeInsets.fromLTRB(18, 8, 18, 8),
      child: Row(
        children: <Widget>[
          title,
          Padding(padding: EdgeInsets.only(right: 20)),
          subtitle ?? Container(),
        ],
      ),
    );
  }
}